# _*_ coding: utf-8 _*_
from django.db import models
from .PerfilUsuario import PerfilUsuario


class login(models.Model):

    contraseña = models.CharField(max_length=20, null=True, blank=True)
    estado = models.CharField(max_length=60)
    usuario = models.CharField(max_length=60)
    estructura_validada = models.BooleanField(default=False)

    perfil_usuario = models.ForeignKey(
        PerfilUsuario, related_name="login", null=True, blank=True)

    class Meta:
        verbose_name = "Login"
        verbose_name_plural = "Logins"

    def __str__(self):
        return self.abrev
